
/*
 * ApexDC speedmod (c) SMT 2007
 */


#ifndef MESSAGES_PAGE_H
#define MESSAGES_PAGE_H

#include <atlcrack.h>
#include "PropPage.h"


class MessagesPage : public CPropertyPage<IDD_MESSAGES_PAGE>, public PropPage
{
	public:
		MessagesPage(SettingsManager *s) : PropPage(s)
		{
			SetTitle(CTSTRING(SETTINGS_MESSAGES));
			m_psp.dwFlags |= PSP_RTLREADING;
		};
		virtual ~MessagesPage() { }
		
		BEGIN_MSG_MAP(MessagesPage)
		MESSAGE_HANDLER(WM_INITDIALOG, onInitDialog)
		END_MSG_MAP()
		
		LRESULT onInitDialog(UINT, WPARAM, LPARAM, BOOL&);
		
		// Common PropPage interface
		PROPSHEETPAGE *getPSP()
		{
			return (PROPSHEETPAGE *) * this;
		}
		virtual void write();
		
	protected:
		static Item items[];
		static TextItem texts[];
		static ListItem listItems[];
};

#endif //MESSAGES_PAGE_H
